import React from "react";
import { Redirect, Route, Switch } from "react-router-dom";
import "./app.css";
import Login from "./pages/login/Login";
import Index from "./routes/Main";

function App() {
  return (
    <div className="App">
      <Switch>
        <Route path="/login" component={Login}></Route>
        <Route path="/" component={Index}></Route>
        <Redirect to="/"></Redirect>
      </Switch>
    </div>
  );
}

export default App;
